public class Cube{
  
   private float ancho,alto,profundo;
   private PVector dim;
   private PVector posicion;
   
  
  public Cube(PVector dim, PVector posicion){
  
    this.dim = dim;
    this.posicion= posicion;
 }
  
  public void draw(){
    pushMatrix();
    translate(posicion.x,posicion.y,posicion.z);
   box(dim.x,dim.y,dim.z); 
   popMatrix();
  }
  
  public float getX(){
   return posicion.x; 
  }
  public float getY(){
    return posicion.y;
  }
  public float getZ(){
   return posicion.z; 
  }
  
  public float getAncho(){
    return dim.x;
  }
  public float getAlto(){
    return dim.y;
  }
  public float getProfundidad(){
    return dim.z;
  }
  
    
}
